﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MemDBAPI;

namespace NICY
{
    
    //一条一条执行SQL语句，然后调用Assembler进行组装或者返回结果
    public class Executor
    {
        private List<String> statements;

        //TODO: Use more concrete objects 
        private String result;

        private SQLConnection conn;

        public Executor(List<String> statements, SQLConnection conn){
            this.statements = statements;
            this.conn = conn;
        }

        public void execute(){

        }

        //TODO
        public Boolean getSaveResult(){
            return true;
        }

        //TODO
        public Boolean getUpdateResult(){
            return true;
        }

        //TODO
        public ResultDataSet getQueryResult(){
            return null;
        }

    }
}
